<?php
namespace app\home\controller;
use alisms\Sms;
use app\common\logic\Email;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
use think\Controller;
use think\facade\App;
use Jose\Factory\JWKFactory;
use Jose\Factory\JWSFactory;

class General extends Base {
    
    protected function initialize()
    {
        parent::initialize();
        $this->checkLogin();
    }
    
    /**
     * @desc 文件上传
     */
    public function upload() {
        $generalLogic = model('common/General', 'logic');
        $result = $generalLogic->upload();
        return send_response($result, $generalLogic->errorCode, $generalLogic->message);
    }
}
